package com.mcintyret.site.web.controller.journal.forms;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * User: mcintyret2
 * Date: 13/04/2012
 */
public class JournalForm {

    static final int MAX_SIMPLE_TEXT_INPUT_SIZE = 255;

    @NotNull
    private Integer journalFamilyId;
    @NotNull
    @Size(max = MAX_SIMPLE_TEXT_INPUT_SIZE)
    private String name;
    @Size(max = MAX_SIMPLE_TEXT_INPUT_SIZE)
    private String description;

    public Integer getJournalFamilyId() {
        return journalFamilyId;
    }

    public void setJournalFamilyId(Integer journalFamilyId) {
        this.journalFamilyId = journalFamilyId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}